package com.rpc.common.entity.response;

import com.rpc.common.entity.HostInfoPair;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * 服务发现响应实体类
 */
@Setter
@Getter
public class DiscoverRS extends ResponsePackage implements Serializable {
    private List<HostInfoPair> serverAddressList;   //服务提供方的地址
    private boolean isSuccess;
    private String msg;

    public DiscoverRS() {
        this.setResponseType(ResponseType.DISCOVER_RESPONSE);
    }
}
